package com.lingyuan.warehouse.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingyuan.common.core.domain.vo.wms.WmsPurchaseDetailVO;
import com.lingyuan.common.core.domain.warehouse.pojo.PO.WmsPurchaseDetail;
import com.lingyuan.warehouse.domain.WmsPurchase;

import java.util.List;

/**
 * @Author：寇可往，我亦可往。
 * @Package：com.lingyuan.warehouse.service
 * @Project：lingyuan-shopping-mall
 * @name：WmsPurchaseDetailService
 * @Date：2024/9/19 21:17
 */
public interface WmsPurchaseDetailService extends IService<WmsPurchaseDetail> {

    /**
     * 添加
     */
    void add(List<WmsPurchaseDetail> wmsPurchaseDetail);

    /**
     * 修改
     */
    void update(WmsPurchaseDetail wmsPurchaseDetail);

    /**
     * 删除
     */
    void delete(Long id);

    ///查询
    List<WmsPurchase> getPuchaseList(WmsPurchaseDetailVO wmsPurchaseDetailVO);

    void purchaseAdd(WmsPurchase purchase);

    ///修改订单状态
    void purchaseAllUpdate(WmsPurchase wmsPurchaseDetail);

    ///合并采购
    void mergePurchase(List<WmsPurchaseDetailVO> wmsPurchaseDetailVO);
}
